package com.scut.online_black_market.service;

import com.scut.online_black_market.dto.ConsultationRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scut.online_black_market.entity.ConsultationListResponse;
import com.scut.online_black_market.dto.ConsultationResponse;
import com.scut.online_black_market.exception.UniversalException;

import java.math.BigInteger;

public interface ConsultationService {

    /**
     * create by yellowBroke
     * @param consultationRequest
     * @throws UniversalException
     */
    void uploadConsultation(ConsultationRequest consultationRequest) throws UniversalException;

    /**
     *
     * @param pageNo
     * @param pageSize
     * @param typeId
     * @return
     * @throws UniversalException
     */
    IPage<ConsultationListResponse> queryConsultationByPage(short pageNo, short pageSize, short typeId) throws UniversalException;

    /**
     * 查询问题详细信息
     * @param consultationId
     * @return
     */
    ConsultationResponse queryByConsultationId(BigInteger consultationId) throws UniversalException;

    /**
     *
     * @param consultationId
     * @throws UniversalException
     */
    void deleteByConsultationId(BigInteger consultationId) throws UniversalException;
}
